/**
 * 
 */
package com.inkcar.generator.model;

/**
 * @author 欧阳增高
 * 
 */
public class TableProperty {
	/**
	 * 数据库字段名
	 */
	private String name;
	/**
	 * 数据库字段类型--原类型,mybatis使用
	 */
	private String type;
	/**
	 * 数据库字段类型--转换类型,mybatis使用
	 */
	private String convertType;
	/**
	 * 字段说明
	 */
	private String comment;

	private String description;
	/**
	 * 生成实体属性名
	 */
	private String property;
	/**
	 * 生成实体属性名，带下划线值
	 */
	private String orignProperty;
	/**
	 * 生成实体属性类型
	 */
	private String propertyType;

	/**
	 * 默认值
	 */
	private String defaultValue;

	/**
	 * 数据库默认值
	 */
	private String dbDefaultValue;

	/**
	 * java生成model默认值
	 */
	private String javaDefaultValue;
	/**
	 * 字段长度
	 */
	private int length;
	/**
	 * 字段精度
	 */
	private int precision;

	/**
	 * 该字段在数据添加时不进行insert
	 */
	private boolean notInsert = false;

	/**
	 * 是否自动增长值,主键字段有效
	 */
	private boolean increment = false;

	/**
	 * 是否需要创建实体属性
	 */
	private boolean notBuild = false;

	/**
	 * 不能为空
	 */
	private boolean notNull = false;
	
	/**
	 * 是否生成搜索值
	 */
	private String search;

	/**
	 * 是否以like方式查询数据
	 */
	private boolean like = false;

	/**
	 * 自定义序号定义CODE
	 */
	private String sequenceCode;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the desc
	 */
	public String getComment() {
		return comment;
	}

	/**
	 * @param desc
	 *            the desc to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/**
	 * @return the property
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * @param property
	 *            the property to set
	 */
	public void setProperty(String property) {
		this.property = property;
	}

	/**
	 * @return the propertyType
	 */
	public String getPropertyType() {
		return propertyType;
	}

	/**
	 * @param propertyType
	 *            the propertyType to set
	 */
	public void setPropertyType(String propertyType) {
		this.propertyType = propertyType;
	}

	/**
	 * @return the defaultValue
	 */
	public String getDefaultValue() {
		return defaultValue;
	}

	/**
	 * @param defaultValue
	 *            the defaultValue to set
	 */
	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

	/**
	 * @return the length
	 */
	public int getLength() {
		return length;
	}

	/**
	 * @param length
	 *            the length to set
	 */
	public void setLength(int length) {
		this.length = length;
	}

	/**
	 * @return the precision
	 */
	public int getPrecision() {
		return precision;
	}

	/**
	 * @param precision
	 *            the precision to set
	 */
	public void setPrecision(int precision) {
		this.precision = precision;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the increment
	 */
	public boolean getIncrement() {
		return increment;
	}

	/**
	 * @param increment
	 *            the increment to set
	 */
	public void setIncrement(boolean increment) {
		this.increment = increment;
	}

	/**
	 * @return the notBuild
	 */
	public boolean isNotBuild() {
		return notBuild;
	}

	/**
	 * @param notBuild
	 *            the notBuild to set
	 */
	public void setNotBuild(boolean notBuild) {
		this.notBuild = notBuild;
	}

	/**
	 * @return the notNull
	 */
	public boolean isNotNull() {
		return notNull;
	}

	/**
	 * @param notNull
	 *            the notNull to set
	 */
	public void setNotNull(boolean notNull) {
		this.notNull = notNull;
	}

	/**
	 * @return the sequenceCode
	 */
	public String getSequenceCode() {
		return sequenceCode;
	}

	/**
	 * @param sequenceCode
	 *            the sequenceCode to set
	 */
	public void setSequenceCode(String sequenceCode) {
		this.sequenceCode = sequenceCode;
	}

	/**
	 * @return the dbDefaultValue
	 */
	public String getDbDefaultValue() {
		return dbDefaultValue;
	}

	/**
	 * @param dbDefaultValue
	 *            the dbDefaultValue to set
	 */
	public void setDbDefaultValue(String dbDefaultValue) {
		this.dbDefaultValue = dbDefaultValue;
	}

	/**
	 * @return the like
	 */
	public boolean isLike() {
		return like;
	}

	/**
	 * @param like
	 *            the like to set
	 */
	public void setLike(boolean like) {
		this.like = like;
	}

	/**
	 * @return the javaDefaultValue
	 */
	public String getJavaDefaultValue() {
		return javaDefaultValue;
	}

	/**
	 * @param javaDefaultValue
	 *            the javaDefaultValue to set
	 */
	public void setJavaDefaultValue(String javaDefaultValue) {
		this.javaDefaultValue = javaDefaultValue;
	}

	/**
	 * @return the notInsert
	 */
	public boolean isNotInsert() {
		return notInsert;
	}

	/**
	 * @param notInsert
	 *            the notInsert to set
	 */
	public void setNotInsert(boolean notInsert) {
		this.notInsert = notInsert;
	}

	/**
	 * @return the orignProperty
	 */
	public String getOrignProperty() {
		return orignProperty;
	}

	/**
	 * @param orignProperty the orignProperty to set
	 */
	public void setOrignProperty(String orignProperty) {
		this.orignProperty = orignProperty;
	}

	/**
	 * @return the convertType
	 */
	public String getConvertType() {
		return convertType;
	}

	/**
	 * @param convertType the convertType to set
	 */
	public void setConvertType(String convertType) {
		this.convertType = convertType;
	}

	/**
	 * @return the search
	 */
	public String getSearch() {
		return search;
	}

	/**
	 * @param search the search to set
	 */
	public void setSearch(String search) {
		this.search = search;
	}

}
